-module (web_index).
-include_lib ("nitrogen/include/wf.inc").
-include ("src/api/useful.hrl").
-compile(export_all).


main() -> 
	#template { file="./wwwroot/template.html"}.

title() -> "Hertz : Langage fonctionnel léger pour débutants".

body() ->
%spawn(helper, spawn_htoplevel, []),
   % element_code:render(code_run, ?MODULE).
    element_code:render(code_toplevel, ?MODULE).

exec(Fun, Arg) -> %Required to handle element_code module
    Fun(Arg).
